package com.avalonsql.core.db.drivers;

import com.avalonsql.core.configs.DriverDefinitionConfig;
import com.avalonsql.core.db.objects.api.IRootObject;
import com.avalonsql.core.db.objects.impl.Schema;
import com.avalonsql.core.db.objects.impl.StoredProcedure;
import com.avalonsql.core.db.objects.impl.View;

public class DB2Driver extends DBDriver {

    public static final String NAME = "DB2";

    public DB2Driver(DriverDefinitionConfig driverDefinitionConfig, boolean loadDrivers) throws DBDriverInstatiationException {
        super(driverDefinitionConfig, loadDrivers);    
    }

    public DB2Driver(DriverDefinitionConfig driverDefinitionConfig) throws DBDriverInstatiationException {
        super(driverDefinitionConfig);
        
        supportedClasses.add(View.class);
        supportedClasses.add(StoredProcedure.class);

    }

    @Override
    public String getName() {
        return NAME;
    }

    @Override
    public Class<? extends IRootObject> getRootObjectClass() {
        return Schema.class;
    }

}
